package lab02.Test12;

/**
 * Created by lenovo on 2017/10/20.
 */
public  class Circle implements Shape {
    public double area(double r){
        double area;
        area=Math.PI*r*r;
        return area;
    }

    public double perimeter(double r){
        double perimeter;
        perimeter = 2*Math.PI*r;
        return perimeter;
    }

    public void put(){

        System.out.println("圆的面:"+area(2));
        System.out.println("圆的周长:"+perimeter(2));
    }


}
